package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysTouristMapper;
import com.ruoyi.system.domain.SysTourist;
import com.ruoyi.system.service.ISysTouristService;
import com.ruoyi.common.core.text.Convert;

/**
 * 人流量统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-10-12
 */
@Service
public class SysTouristServiceImpl implements ISysTouristService 
{
    @Autowired
    private SysTouristMapper sysTouristMapper;

    /**
     * 查询人流量统计
     * 
     * @param id 人流量统计ID
     * @return 人流量统计
     */
    @Override
    public SysTourist selectSysTouristById(Long id)
    {
        return sysTouristMapper.selectSysTouristById(id);
    }

    /**
     * 查询人流量统计列表
     * 
     * @param sysTourist 人流量统计
     * @return 人流量统计
     */
    @Override
    public List<SysTourist> selectSysTouristList(SysTourist sysTourist)
    {
        return sysTouristMapper.selectSysTouristList(sysTourist);
    }

    /**
     * 新增人流量统计
     * 
     * @param sysTourist 人流量统计
     * @return 结果
     */
    @Override
    public int insertSysTourist(SysTourist sysTourist)
    {
        return sysTouristMapper.insertSysTourist(sysTourist);
    }

    /**
     * 修改人流量统计
     * 
     * @param sysTourist 人流量统计
     * @return 结果
     */
    @Override
    public int updateSysTourist(SysTourist sysTourist)
    {
        return sysTouristMapper.updateSysTourist(sysTourist);
    }

    /**
     * 删除人流量统计对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSysTouristByIds(String ids)
    {
        return sysTouristMapper.deleteSysTouristByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除人流量统计信息
     * 
     * @param id 人流量统计ID
     * @return 结果
     */
    @Override
    public int deleteSysTouristById(Long id)
    {
        return sysTouristMapper.deleteSysTouristById(id);
    }
}
